package the.workshop.bu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.wisteria.framework.web.mvc.entity.SuperEntity;

/**
 * <p>
 * 申贷
 * </p>
 *
 * @author lei.liu
 * @since 2020-06-15
 */
@Data
@TableName("bu_credit")
public class Credit extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Integer customerId;

    /**
     * 业务员ID
     */
    @TableField("sales_id")
    private String salesId;

    /**
     * 结果
     */
    @TableField("result")
    private Integer result;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 产品
     */
    @TableField("product")
    private String product;

    private String status;

    @Override
    public String toString() {
        return "{" +
                "id=" + id +
                ", customerId=" + customerId +
                ", salesId='" + salesId + '\'' +
                ", result=" + result +
                ", remark='" + remark + '\'' +
                ", product='" + product + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
